//提供体检相关的接口
import request from "@/utils/request";

export const PhysicalTypeService = () => {
  return request.get("/physical/type");
};

export const PhysicalItemByTypeService = (typeid) => {
  return request.get("/physical/" + typeid);
};

export const PhysicalItems = () => {
  return request.get("/physical/items");
};

//生成体检报告
export const GeneratePhysicalReportService = (physicalItemDto) => {
  return request.post("/physical/report", physicalItemDto);
};

//保存体检报告
export const SavePhysicalReportService = (physicalItemDto) => {
  return request.post("/physical/save", physicalItemDto);
};
//取消体检
export const CancelPhysicalService = () => {
  return request.delete("/physical/cancel");
};
export const GetReportInfoService = (memberId) => {
  return request.get("/physical/reportInfo",{params:{memberId}});
};

export const UpdatePhysicalItemService = (data) => {
  
  return request.put("/physical/updateReport", data);
};
export const OcrAwardHandleService = (formData, headers) => {
  return request({
    url: "/api/ocr/awardHandle",
    method: "post",
    data: formData,
    headers: headers,
  });
}